<?php if(isset($this->error)) { ?>
	
	<div id="content_set"><?php echo $this->error; ?></div>
	
<?php } ?>

<div id="content_set">
	<form 	action="<?php echo $this->url(array('module' => 'backend', 'controller' => 'user', 'action' => 'prc-set', 'id' => $this->datas['id']), null, true); ?>"
			method="post"
			id="set_form">
		
		<label for="firstname">Prénom :</label>
		<input type="text" id="firstname" name="firstname" value="<?php echo $this->datas['firstname']; ?>" class="required" />
		<span class="required_field"> *</span>
		<br />
		
		<label for="lastname">Nom :</label>
		<input type="text" id="lastname" name="lastname" value="<?php echo $this->datas['lastname']; ?>" class="required" />
		<span class="required_field"> *</span>
		<span class="annotation">(1)</span>
		<br />
		
		<label for="nickname">Surnom :</label>
		<input type="text" id="nickname" name="nickname" class="required" value="<?php echo $this->datas['nickname']; ?>" />
		<span class="required_field"> *</span>
		<br />
		
		<?php
		/** TODO
		 * Add picture
		<label for="picture">Photo de profil :</label>
		<input type="file" id="picture" name="picture" class="required" value="" />
		<span class="precision"></span>
		<br />
		*/
		?>
		
		<label for="birth">Date de naissance :</label>
		<input type="text" id="birth" name="birth" value="<?php echo $this->datas['birth']; ?>" class="required date" />
		<span class="required_field"> *</span>
		<span class="description">(jj/mm/aaaa)</span>
		<br />
		
		<label for="address">Adresse :</label>
		<input type="text" id="address" name="address" value="<?php echo $this->datas['address']; ?>" class="required" />
		<span class="required_field"> *</span>
		<span class="annotation">(1)</span>
		<br />
		
		<label for="postcode">Code postal :</label>
		<input type="text" id="postcode" name="postcode" value="<?php echo $this->datas['postcode']; ?>" class="required postcode" />
		<span class="required_field"> *</span>
		<span class="annotation">(1)</span>
		<br />
		
		<label for="city">Ville :</label>
		<input type="text" id="city" name="city" value="<?php echo $this->datas['city']; ?>" class="required" />
		<span class="required_field"> *</span>
		<span class="annotation">(1)</span>
		<br />
		
		<label for="telephone">Téléphone :</label>
		<input type="text" id="telephone" name="telephone" value="<?php echo $this->datas['telephone']; ?>" class="required telephone" />
		<span class="required_field"> *</span>
		<span class="annotation">(1)</span>
		<br />
		
		<label for="style">Style :</label>
		<input type="text" id="style" name="style" value="<?php echo $this->datas['style']; ?>" />
		<br />
		
		<label for="song">Son du moment : </label>
		<input type="text" id="song" name="song" value="<?php echo $this->datas['song']; ?>" />
		<br />
		
		<label for="situation">Situation :</label>
		<input type="text" id="situation" name="situation" value="<?php echo $this->datas['situation']; ?>" />
		<span class="precision">(Etudiant, quelles études, salarié, quel métier, etc.) </span>
		<br />
		
		<label for="url">Site Internet :</label>
		<input type="text" id="url" name="url" value="<?php echo $this->datas['url']; ?>" class="url" />
		<br />
		
		<label for="about">A propos :</label>
		<textarea id="about" name="about"><?php echo $this->datas['about']; ?></textarea>
		<span class="precision">(Présentation rapide) </span>
		<br />
		
		<label for="facebook">Facebook :</label>
		<input type="text" id="facebook" name="facebook" value="<?php echo $this->datas['facebook']; ?>" class="url" />
		<br />
		
		<label for="twitter">Twitter :</label>
		<input type="text" id="twitter" name="twitter" value="<?php echo $this->datas['twitter']; ?>" class="url" />
		<br />
		
		<label for="youtube">Youtube :</label>
		<input type="text" id="youtube" name="youtube" value="<?php echo $this->datas['youtube']; ?>" class="url" />
		<br />
		
		<label for="dailymotion">Dailymotion :</label>
		<input type="text" id="dailymotion" name="dailymotion" value="<?php echo $this->datas['dailymotion']; ?>" class="url" />
		<br />
		
		<span class="annotation_translate">(1) : Uniquement visible par l'administration</span>
		<br />
		
		<input type="submit" name="set_send" value="Enregistrer" />
	</form>	
	
	<div id="set_message" class="hidden"></div>
	
</div>
